﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace docent
{
    public class Flow
    {
        private List<FlowNode> _nodes;

        public long ID { get; set; }
        public string Name { get; set; }
        public IEnumerable<FlowNode> Nodes { get { return _nodes; } }

        public Flow()
        {
            _nodes = new List<FlowNode>();
        }
        public FlowNode Add(FlowNode node)
        {
            _nodes.Add(node);
            return node;
        }
    }
}
